package NewOOP.poly;

public class Dog extends Animal {
    public Dog(String name,int age){
        super(name,age); //使用super初始化从父类继承来的属性
    }

    @Override
        public void eat(){
        System.out.println(name + "正在吃狗粮");
    }
}
